import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router/index.js'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// Vuetify
import 'vuetify/styles'
import { createVuetify } from 'vuetify'
import * as components from 'vuetify/components'
import * as directives from 'vuetify/directives'

const vuetify = createVuetify({
	components,
	directives
})
const app = createApp(App)
// app.component(key, component)

app.use(router)
app.use(ElementPlus)
app.use(vuetify)
app.mount('#app')

// const  whileList=['/']
// router.beforeEach((to,from,next)=>{
//     next()
// })
